package com.sikaryofficial.information.domain.mapping;

import com.sikaryofficial.information.domain.entity.ArticleCategoryEntity;
import com.sikaryofficial.system.api.model.infomation.ArticleCategoryObjVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author : qinjinyuan
 * @desc : 附件实体映射
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface ArticleCategoryEntityMapping {
    ArticleCategoryEntityMapping INSTANCE = Mappers.getMapper(ArticleCategoryEntityMapping.class);

    /**
     * 实体映射resp
     *
     * @param categoryObjVO
     * @return
     */
    @Mapping(source = "articleCategoryId", target = "categoryId")
    ArticleCategoryEntity coverToEntity(ArticleCategoryObjVO categoryObjVO);
}
